﻿using System.Web.Routing;

namespace System.Web.Mvc
{
    /// <summary>
    /// 可逆模型绑定器
    /// </summary>
    public interface IReversibleModelBinder : IModelBinder
    {
        /// <summary>
        /// 绑定路由
        /// </summary>
        /// <param name="requestContext">请求上下文</param>
        /// <param name="bindingContext">绑定上下文</param>
        /// <returns>路由值字典</returns>
        RouteValueDictionary BindRoute(RequestContext requestContext, RouteBindingContext bindingContext);
    }
}
